<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <title>来拍车App-充值页</title>
    <link rel="stylesheet" href="{:get_style_cdnurl()}app/css/iconline.css">
    <link rel="stylesheet" href="{:get_style_cdnurl()}app/css/home.css">
    <script src="{:get_style_cdnurl()}app/js/jquery-1.11.1.js" type="text/javascript"></script>
    <script src="{:get_style_cdnurl()}paimai/cheshan/js/TGJSBridge.js" type="text/javascript"></script>
    <script src="{:get_style_cdnurl()}paimai/cheshan/js/appclient.js" type="text/javascript"></script>
    <script src="{:get_style_cdnurl()}app/js/conversion.js" type="text/javascript"></script>
    <script>
        $(document).ready(function() {
            $("#money").keyup(function(){
                if(!$(this).val()==""){
                    $(".recharge .recharge_btn").css({"border":"solid 1px #3399ff","color":"#fff","background":"#3399ff"})
                    $(".recharge .recharge_btn").removeAttr("disabled");
                }else{
                    $(".recharge .recharge_btn").css({"border":"solid 1px #8a8989","color":"#fff","background":"#8a8989"});
                    $(".recharge .recharge_btn").attr("disabled","true");
                    $("#C_money").fadeOut()
                }
                if($(this).val().length>7){
                    var num=$(this).val().substr(0,7);
                    $(this).val(num);
                }
                var tmptxt=$(this).val();
                $(this).val(tmptxt.replace(/\D|^0/g,''));
            })

        })

        $(function(){
            $(".recharge .recharge_btn").attr("disabled","true");
        })
    </script>

</head>
<body style="background: #fff;">
  <form action="{:U('Recharge/jump')}" method="get">
    <input type="hidden" name="dealer_id" value="{$dealer_id}">
    <input type="hidden" name="device_model" value="{$device_model}">
    <input type="hidden" name="version" value="{$version}">
    <div class="bond_recharge clearfix">
        <span>金额（元）</span>
        <input name="amount" id="money" type="number" placeholder="请输入充值金额" maxlength="7" value=""  oninput="showChineseAmount()" />
        <input type="text" value="" id="C_money" />
    </div>
    <div class="recharge"><button type="submit" class="recharge_btn">充值</button></div>
  </form>
</body>
</html>